package org.cy.websocket.stomp;

/**
 * Created in 2021-05-09 18:35
 *
 * @author cao.yong
 */
public class Heartbeat {
    /**
     * 心跳设置, 接收心跳间隔，0 不接收
     */
    private long incoming = 0;

    /**
     * 心跳设置，发送心跳间隔，0 不发送
     */
    private long outgoing = 0;

    public Heartbeat() {
    }

    public Heartbeat(long incoming, long outgoing) {
        this.incoming = incoming;
        this.outgoing = outgoing;
    }

    public long getIncoming() {
        return incoming;
    }

    public void setIncoming(long incoming) {
        this.incoming = incoming;
    }

    public long getOutgoing() {
        return outgoing;
    }

    public void setOutgoing(long outgoing) {
        this.outgoing = outgoing;
    }
}
